﻿using Bootstrap.Definition.Enums;
using Bootstrap.Template.TemplateInnerItem;

namespace Bootstrap.Template.Label
{

    public partial class BootstrapLabelTemplate
    {
        #region Fields
        
        string LabelType;
        string Text;

        #endregion

        #region Methods
        
        public BootstrapLabelTemplate(BootstrapLabelTemplateItem items)
        {
            switch (items.LabelType)
            {
                case TypeEnum.Default:
                    LabelType = "label-default";
                    break;
                case TypeEnum.Primary:
                    LabelType = "label-primary";
                    break;
                case TypeEnum.Success:
                    LabelType = "label-success";
                    break;
                case TypeEnum.Info:
                    LabelType = "label-info";
                    break;
                case TypeEnum.Warning:
                    LabelType = "label-warning";
                    break;
                case TypeEnum.Danger:
                    LabelType = "label-danger";
                    break;
                default:
                    LabelType = "label-none";
                    break;
            }

            Text = items.Text;
        }

        #endregion

    }
}
